package cn.edu.zafu.bigdata.x.wupeng.a;

public class WeierCourse extends Course {
    // 课程难度等级
    private String difficultyLevel;
    // 课程类型
    private String courseType;
    // 课程开始时间
    private String startTime;
    // 课程结束时间
    private String endTime;

    // 构造函数
    public WeierCourse(String courseId, String courseName, String description, int credits, String instructor, String difficultyLevel, String courseType, String startTime, String endTime) {
        super("","",4);
        this.difficultyLevel = difficultyLevel;
        this.courseType = courseType;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    // 获取课程难度等级
    public String getDifficultyLevel() {
        return difficultyLevel;
    }

    // 设置课程难度等级
    public void setDifficultyLevel(String difficultyLevel) {
        this.difficultyLevel = difficultyLevel;
    }

    // 获取课程类型
    public String getCourseType() {
        return courseType;
    }

    // 设置课程类型
    public void setCourseType(String courseType) {
        this.courseType = courseType;
    }

    // 获取课程开始时间
    public String getStartTime() {
        return startTime;
    }

    // 设置课程开始时间
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    // 获取课程结束时间
    public String getEndTime() {
        return endTime;
    }

    // 设置课程结束时间
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    // 重写print方法
    //@Override
    public void print() {
        //super.print();
        System.out.println("Difficulty Level: " + difficultyLevel);
        System.out.println("Course Type: " + courseType);
        System.out.println("Start Time: " + startTime);
        System.out.println("End Time: " + endTime);
    }

    // 主函数，用于测试WeierCourse类
    public static void main(String[] args) {
        // 创建一个WeierCourse对象
        WeierCourse weierCourse = new WeierCourse("MATH101", "java", "This course covers the basics of java.", 3, "Wu Peng", "Advanced", "Lecture", "09:00", "12:00");

        // 打印课程信息
        weierCourse.print();
    }
}